Skip to content

Conversation

@await-ovo
Copy link

when use npmCheck to get real-time dependencies info like codes below, it turns out that can't get updated info
it seems that can't read correct package.json info, because :

pkg = require(filename);

const npmCheck = require('npm-check');
 
npmCheck(options)
  .then(currentState => console.log(currentState.get('packages')));



// do something like yarn add package will change package.json



npmCheck(options)
  .then(currentState => console.log(currentState.get('packages')));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant